home *** CD-ROM | disk | FTP | other *** search
- Path: news.spies.com!usenet
- From: Erik Max Francis <max@alcyone.com>
- Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp
- Subject: Re: float != float and floats as return types
- Date: Mon, 29 Jan 1996 14:43:40 -0800
- Organization: &tSftDotIotE
- Message-ID: <310D4D9C.7DAB2E1B@alcyone.com>
- References: <4ej9lb$mpc@fu-berlin.de>
- NNTP-Posting-Host: newton.alcyone.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.2.8 i486)
-
- Axel Thimm wrote:
-
- > At first I thought all numbers should be zeros. The middle column might
- > not be zero, if the compiler calculates in higher precision than what
- > the variables are, so an intermediate storage (b) might loose some
- > digits, but I cannot understand what happens with c! Both times a
- > function is called, that _is_not_ inlined, so in both cases the same
- > loss of digits should be observed.
- > Any ideas?
-
- I don't understand what you find surprising. Both the second and third column
- have the same computation, except that in one of the x^2 function is inlined
- and in the other it is called through a function. In either case, you get
- exactly the same value. What is the objection?
- --
- Erik Max Francis, &tSftDotIotE. && max@alcyone.darkside.com || max@alcyone.com
- San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
- H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
- Omnia quia sunt, lumina sunt. && GIGO Omega Psi && http://www.alcyone.com/max/
- "Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
-